package o;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.huawei.appgallery.foundation.store.bean.spilt.DeviceSpec;
import com.huawei.appgallery.foundation.store.bean.spilt.DeviceSpec.e;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.fastengine.fastview.download.utils.PackageUtils;
import java.util.TimeZone;

public final class cvv extends cvs {
    public static final String APIMETHOD = "client.front2";
    public static final int FIRST_LAUNCH_DATA = 1;
    public static final int IS_CHANNEL_PACKAGE = 1;
    public static final int NEED_STORE_SERVICE_ZONE = 1;
    public static final int NOT_CHANNEL_PACKAGE = 0;
    public static final int NO_FIRST_LAUNCH_DATA = 0;
    public static final int QUERY_CDC_FAILURE = 1;
    public static final int QUERY_CDC_SUCCEED = 0;
    public static final int RSA_VER_2048_OAEP = 3;
    public static final int STARTUP_REQUEST_BACKGROUND = 1;
    public static final int STARTUP_REQUEST_FORGROUND = 0;
    public static final int SYSTEM_32 = 1;
    public static final int SYSTEM_64 = 2;
    public static final int UNNEED_STORE_SERVICE_ZONE = 0;
    private String accountZone_ = "";
    private String buildNumber_;
    private String channelInfo_;
    private String density_;
    private int deviceIdType_;
    private DeviceSpec deviceSpecParams_ = new e(ContentManager.getInstant().getContext()).ˎ(true).ॱ();
    private int emuiApiLevel_ = 0;
    private String emuiVer_ = null;
    private String firmwareVersion_;
    private int gameProvider_ = 0;
    private int gmsAvailableCode_;
    private int gmsSupport_;
    private int isBack_ = 0;
    private int isFirstLaunch_ = 0;
    private int isHotWifi_;
    private int isSubUser_ = 0;
    private String lastPhyZone_;
    private String magicui_;
    private int mapleVer_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String mcc_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String mnc_;
    private int needServiceZone_ = 0;
    private int oobeMarket_;
    private int oobe_ = 0;
    private String packageName_;
    private String phoneType_;
    private int r_;
    private String resolution_;
    private long roamingTime_;
    private String screen_;
    private int supportMaple_;
    private int sysBits_ = 1;
    private String theme_;
    private String timeZone_;
    public int versionCode_;
    private String version_;
    private String vnk_;
    private int zone_;

    private cvv() {
    }

    public static cvv ˎ() {
        int i;
        int i2 = 1;
        cvv o_cvv = new cvv();
        Context ˋ = ContentManager.getInstant().getContext();
        o_cvv.setSerial(true);
        o_cvv.setSign_(null);
        o_cvv.setNeedSign(false);
        o_cvv.setMethod_(APIMETHOD);
        o_cvv.firmwareVersion_ = doi.ˊ();
        o_cvv.setLocale_(doi.ॱ());
        o_cvv.ॱ(1);
        o_cvv.version_ = cdn.ˊ(ˋ);
        o_cvv.buildNumber_ = dok.ˎ();
        o_cvv.phoneType_ = Build.MODEL;
        o_cvv.density_ = dok.ʻ();
        o_cvv.ˏ(dok.ˊॱ());
        o_cvv.versionCode_ = cdn.ˏ(ˋ);
        o_cvv.gmsSupport_ = dok.ˋॱ() ? 1 : 0;
        o_cvv.gmsAvailableCode_ = dok.ˊ(ˋ);
        o_cvv.theme_ = "true";
        o_cvv.resolution_ = dok.ˊॱ();
        o_cvv.setStoreApi("clientApi");
        if (etp.ˋ()) {
            i = 1;
        } else {
            i = 0;
        }
        o_cvv.r_ = i;
        String packageName = ˋ.getPackageName();
        o_cvv.packageName_ = packageName;
        o_cvv.ˎ(azc.ˎ().ˋ());
        o_cvv.ˎ(azc.ˎ().ॱ());
        String ˊ = azc.ˎ().ˊ();
        if (!TextUtils.isEmpty(ˊ)) {
            o_cvv.ʼ(ˊ);
        }
        if (!PackageUtils.HWGAMEBOX_PACKAGE_NAME.equals(packageName)) {
            o_cvv.ˋ(eqp.ॱ());
            if (eqp.ॱˊ() && TextUtils.isEmpty(epr.ˎ().ˊॱ())) {
                o_cvv.ʼ(1);
                o_cvv.ˋ(eqp.ͺ());
            }
        }
        o_cvv.ˋ(dok.ˏॱ() == 0 ? 0 : 1);
        o_cvv.sysBits_ = ˊ();
        o_cvv.setCacheID(APIMETHOD + o_cvv.ॱ() + o_cvv.ˋ() + o_cvv.getLocale_());
        o_cvv.timeZone_ = TimeZone.getDefault().getID();
        o_cvv.roamingTime_ = eua.ˏ().ॱ("roam_time", 0);
        o_cvv.lastPhyZone_ = eua.ˏ().ॱ("physical_address", "");
        o_cvv.mcc_ = bke.ˎ();
        o_cvv.mnc_ = bke.ˏ();
        if (doo.ॱॱ(ˋ) && doo.ᐝ(ˋ)) {
            i = 1;
        } else {
            boolean z = false;
        }
        if (i == 0) {
            i2 = 0;
        }
        o_cvv.isHotWifi_ = i2;
        o_cvv.supportMaple_ = cdn.ʻ().ᐝ();
        o_cvv.mapleVer_ = cdn.ʻ().ʼ();
        return o_cvv;
    }

    private static int ˊ() {
        int i = 1;
        if (bmm.getSystemProperty("ro.product.cpu.abi", "").contains("arm64")) {
            i = 2;
        }
        cvp.ˎ.ˋ("StartupRequest", "systeAbi:" + i);
        return i;
    }

    public boolean isNeedRecallFront() {
        return false;
    }

    public void ॱ(int i) {
        this.zone_ = i;
    }

    public void ˏ(String str) {
        this.screen_ = str;
    }

    public String ˋ() {
        return this.version_;
    }

    public void ˋ(int i) {
        this.isSubUser_ = i;
    }

    public void ˊ(int i) {
        this.isFirstLaunch_ = i;
    }

    public void ˎ(String str) {
        this.emuiVer_ = str;
    }

    public void ˎ(int i) {
        this.emuiApiLevel_ = i;
    }

    public void ˏ(int i) {
        this.isBack_ = i;
    }

    public String ॱ() {
        return this.accountZone_;
    }

    public void ˋ(String str) {
        this.accountZone_ = str;
    }

    public int getDeviceIdType_() {
        return this.deviceIdType_;
    }

    public void setDeviceIdType_(int i) {
        this.deviceIdType_ = i;
    }

    public void ᐝ(int i) {
        this.oobe_ = i;
    }

    public void ॱ(String str) {
        this.mcc_ = str;
    }

    public int ˏ() {
        return this.needServiceZone_;
    }

    public void ʼ(int i) {
        this.needServiceZone_ = i;
    }

    public void ॱॱ(int i) {
        this.oobeMarket_ = i;
    }

    public void ˊ(String str) {
        this.vnk_ = str;
    }

    public void ᐝ(String str) {
        this.channelInfo_ = str;
    }

    public void ʼ(String str) {
        this.magicui_ = str;
    }
}
